﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Engine.SceneControl.Scene;
using Engine.Cameras;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Engine;

namespace Etapa1.Screens
{
    public  class PostInverseTechnic : IRenderTechnic
    {
        #region IRenderTechnic Members

        private EngineStuff engine;

        public void ExecuteTechnic(IRenderHelper render, Engine.SceneControl.IWorld world)
        {
            render.SetUpRenderTarget(Engine.SceneControl.Scene.RenderTargetType.TEXTURE2D, RenderType.NORMALSCENE);            
            render.RenderSceneWithMaterial("Inverse");
            render.RenderTextureToFullScreen("Inverse");
        }

        #endregion

        #region IRenderTechnic Members

        public void Initialization(IRenderHelper render, Engine.SceneControl.IWorld world, EngineStuff engine)
        {
            this.engine = engine;          
            render.SetQuadEffect("Effects\\post2");
        }

        #endregion



        public string TechnicName
        {
            get { return "ReflectionMap"; }
        }



        #region IRenderTechnic Members


        public void AfterLoadContent()
        {
            
        }

        #endregion
    }
}
